package com.rubbo.client;

import com.rubbo.api.UserServicel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class UserInit implements CommandLineRunner {
    @Autowired
    private UserServicel userServicel;

    @Override
    public void run(String... args) throws Exception {
        System.out.println(userServicel.selectUserById(2));

    }
}
